package com.lagou.util;

import java.io.InputStream;

/**
 * Created by seemygo on 2020/11/13.
 */
public class Resources {
    public static InputStream getResourcesAsStream(String path){
        //根据文件路径将配置文件信息转换为字节输入流
        //通过类加载器
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }
}
